package com.caregiver.watch.business.care.model.vo;

import com.caregiver.watch.business.data.enums.SportTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @Description: 运动数据vo
 * @Author 疆戟
 * @Date 2025/9/27 10:37
 * @Version 1.0
 */
@Data
public class SportDataVo {


    @Schema(description = "运动类型")
    private SportTypeEnum sportType;

    @Schema(description = "运动距离")
    private BigDecimal distance;

    @Schema(description = "运动时长(分钟)")
    private Integer duration;

    @Schema(description = "运动次数")
    private Integer count;


    public static SportDataVo build(SportTypeEnum sportType, BigDecimal distance, Integer duration,Integer count) {
        SportDataVo sportDataVo = new SportDataVo();
        sportDataVo.sportType = sportType;
        sportDataVo.distance = distance;
        sportDataVo.duration = duration;
        sportDataVo.count = count;
        return sportDataVo;
    }
}
